package com.qhgrain.app.vo;

import com.paas.base.modules.utils.lang.StringUtil;
import com.qhgrain.app.constant.AppBusinessTypeEnum;

public class UserAppsVo {

	private String id;// 应用编号
	private String appName; // 应用名称
	private String businessType; // 业务类型
	private String appUrl;// 应用地址
	private String iconClass; // 图标类型
	private String appCode; // 应用代码
	private String appOrder="1";// 应用顺序,默认1
	private String description;// 应用描述
	
	private String userName;//用户名
	private String roleName;//所属角色
	
	public UserAppsVo(){
		
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getAppName() {
		return appName;
	}

	public void setAppName(String appName) {
		this.appName = appName;
	}

	public String getBusinessType() {
		return businessType;
	}

	public void setBusinessType(String businessType) {
		this.businessType = businessType;
	}

	public String getAppUrl() {
		return appUrl;
	}

	public void setAppUrl(String appUrl) {
		this.appUrl = appUrl;
	}

	public String getIconClass() {
		return iconClass;
	}

	public void setIconClass(String iconClass) {
		this.iconClass = iconClass;
	}

	public String getAppCode() {
		return appCode;
	}

	public void setAppCode(String appCode) {
		this.appCode = appCode;
	}

	public String getAppOrder() {
		return appOrder;
	}

	public void setAppOrder(String appOrder) {
		this.appOrder = appOrder;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getRoleName() {
		return roleName;
	}

	public void setRoleName(String roleName) {
		this.roleName = roleName;
	}
	
	public String getBusinessTypeName(){
		if(StringUtil.isNotBlank(this.businessType)){
			return AppBusinessTypeEnum.findName(this.businessType);
		}
		return "";
	}
	
}
